package com.zxl.yjb.base;


import android.support.v4.app.Fragment;

/**
 * 当嵌入Activity中的Fragment以流式进行交互时继承该AppFragment
 * A simple {@link Fragment} subclass.
 */
public abstract class AppFragment extends BaseFragment {

    protected AppActivity getHoldingActivity(){
        return (AppActivity) mActivity;
    }

    protected void addFragment(BaseFragment fragment){
        getHoldingActivity().addFragment(fragment);
    }

    protected void removeFragment(){
        getHoldingActivity().removeFragment();
    }

}
